package com.ifgi.sitcom.campusmapperNDrawer.gamedata;


import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

import com.gamificationlibrary.model.Player;
import com.ifgi.sitcom.campusmapperNDrawer.controllers.CampusMapperApplication;


public class PlayerAdapter extends Player {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6878312559450758158L;
	private String IDPlus;
	private String username;
	private String email;
	private String registrationDate;
	private ScorePerFloor scoreFloor;
	private SerialBitmap picture;
	
	public PlayerAdapter(String username,SerialBitmap result, String iDPlus)
	{
		super();
		this.setPicture(result);
		this.setUsername(username);
		this.setIDPlus(iDPlus);
		this.setEmail(CampusMapperApplication.getInstance().takeEmailfromSmartphone());
		this.setRegistrationDate(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", Locale.ENGLISH).format(new Date()));	
	}

	public PlayerAdapter() {
		// TODO Auto-generated constructor stub
	}


	//begin get and set
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRegistrationDate() {
		return registrationDate;
	}

	public void setRegistrationDate(String registrationDate) {
		this.registrationDate = registrationDate;
	}

	public ScorePerFloor getScoreFloor() {
		return scoreFloor;
	}

	public void setScoreFloor(ScorePerFloor scoreFloor) {
		this.scoreFloor = scoreFloor;
	}
	
	public SerialBitmap getPicture() {
		return picture;
	}

	public void setPicture(SerialBitmap result) {
		this.picture = result;
	}

	public String getIDPlus() {
		return IDPlus;
	}

	public void setIDPlus(String iDPlus) {
		IDPlus = iDPlus;
	}

	@Override
	public String getIdentification() {
		// TODO Auto-generated method stub
		return this.getUsername();
	}

	
	/*public void createScoreFloor()
	{
		scoreFloor=new ScorePerFloor();
	}
*/
	

}
